package dbc;

import java.sql.*;

public abstract class DBI {
   public abstract Connection openConn()throws SQLException;
   public abstract void closeConn()throws SQLException;
   public void closeAll(Statement st, PreparedStatement ps, ResultSet rs)throws  SQLException{
       if (st!=null){
           st.close();
       }
       if (ps!=null){
           ps.close();
       }
       if (rs!=null){
           rs.close();
       }
   }
}
